package ligne2vie.topos.client.maps.events;

import ligne2vie.topos.client.maps.MyMapWidget;

import com.google.gwt.maps.client.event.EventCallback;

/**
 * This event occurs when a summit on the map is clicked. The summit identifier is available using getter
 * {@link #getSummitId()}.
 * 
 * @author thuguerre
 * @since 1.0.0
 */
public class SummitClickEvent extends EventCallback implements MapEvent {

	private long summitId;

	public SummitClickEvent(long summitId) {
		this.summitId = summitId;
	}

	public long getSummitId() {
		return summitId;
	}

	@Override
	public void callback() {
		MyMapWidget.getInstance().notifyObservers(this);
	}
}
